<?php
/* @var $this CustomerController */
/* @var $model Customer */
/* @var $form CActiveForm */
?>

<?php
setlocale(LC_ALL, "de_DE.UTF-8");
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'customer-form',
	'enableAjaxValidation'=>false,
)); ?>

	<!--<p class="note">Fields with <span class="required">*</span> are required.</p>-->

	<?php echo $form->errorSummary($model); ?>


    <div class="block">

        <div class="row">
            <?php echo $form->labelEx($model,'salutation'); ?>
            <?php echo $form->textField($model,'salutation',array('size'=>45,'maxlength'=>45)); ?>
            <?php echo $form->error($model,'salutation'); ?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'first_name'); ?>
            <?php echo $form->textField($model,'first_name',array('size'=>60,'maxlength'=>100)); ?>
            <?php echo $form->error($model,'first_name'); ?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'last_name'); ?>
            <?php echo $form->textField($model,'last_name',array('size'=>60,'maxlength'=>100)); ?>
            <?php echo $form->error($model,'last_name'); ?>
        </div>

        <div class="inner_block">

            <div class="row">
                <?php echo $form->labelEx($model,'tel'); ?>
                <?php echo $form->textField($model,'tel',array('size'=>60,'maxlength'=>100)); ?>
                <?php echo $form->error($model,'tel'); ?>
            </div>

            <div class="row">
                <?php echo $form->labelEx($model,'mobile'); ?>
                <?php echo $form->textField($model,'mobile',array('size'=>60,'maxlength'=>100)); ?>
                <?php echo $form->error($model,'mobile'); ?>
            </div>

            <div class="row">
                <?php echo $form->labelEx($model,'email_private'); ?>
                <?php echo $form->textField($model,'email_private',array('size'=>60,'maxlength'=>100)); ?>
                <?php echo $form->error($model,'email_private'); ?>
            </div>

            <div class="row">
                <?php echo $form->labelEx($model,'fax_private'); ?>
                <?php echo $form->textField($model,'fax_private',array('size'=>60,'maxlength'=>100)); ?>
                <?php echo $form->error($model,'fax_private'); ?>
            </div>

        </div>

        <div class="inner_block">

            <div class="row">
                <?php echo $form->labelEx($model,'birthday'); ?>
                <?php echo $form->textField($model,'birthday',array('size'=>60,'maxlength'=>100)); ?>
                <?php echo $form->error($model,'birthday'); ?>
            </div>

        </div>

     </div>

    <div class="block2">

        <div class="row">
            <?php echo $form->labelEx($model,'tel_company'); ?>
            <?php echo $form->textField($model,'tel_company',array('size'=>60,'maxlength'=>100)); ?>
            <?php echo $form->error($model,'tel_company'); ?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'email_company'); ?>
            <?php echo $form->textField($model,'email_company',array('size'=>60,'maxlength'=>100)); ?>
            <?php echo $form->error($model,'email_company'); ?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'homepage'); ?>
            <?php echo $form->textField($model,'homepage',array('size'=>60,'maxlength'=>100)); ?>
            <?php echo $form->error($model,'homepage'); ?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'fax_company'); ?>
            <?php echo $form->textField($model,'fax_company',array('size'=>60,'maxlength'=>100)); ?>
            <?php echo $form->error($model,'fax_company'); ?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'sector'); ?>
            <?php echo $form->textField($model,'sector',array('size'=>60,'maxlength'=>100)); ?>
            <?php echo $form->error($model,'sector'); ?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'company'); ?>
            <?php echo $form->textField($model,'company',array('size'=>60,'maxlength'=>100)); ?>
            <?php echo $form->error($model,'company'); ?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'profession'); ?>
            <?php echo $form->textField($model,'profession',array('size'=>60,'maxlength'=>100)); ?>
            <?php echo $form->error($model,'profession'); ?>
        </div>

    </div>

    <br>
    <br>
    <br>
    <br>


    <div class="clear"></div>

    <br>
    <br>

	<div class="row">
		<?php echo $form->labelEx($model,'info'); ?>
		<?php echo $form->textArea($model,'info',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'info'); ?>
	</div>

    <br>
    <br>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Anlegen' : 'Speichern'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->